package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 好友关系对象 pc_friend
 * 
 * @author ruoyi
 */
public class PcFriend extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 好友ID */
    @Excel(name = "好友ID", cellType = Excel.ColumnType.NUMERIC)
    private Long friendId;

    /** 用户ID */
    @Excel(name = "用户ID", cellType = Excel.ColumnType.NUMERIC)
    private Long userId;

    /** 好友用户ID */
    @Excel(name = "好友用户ID", cellType = Excel.ColumnType.NUMERIC)
    private Long friendUserId;

    /** 好友状态（0待确认 1已同意 2已拒绝） */
    @Excel(name = "好友状态", readConverterExp = "0=待确认,1=已同意,2=已拒绝")
    private String friendStatus;

    /** 授权类型（0一直允许 1需确认） */
    @Excel(name = "授权类型", readConverterExp = "0=一直允许,1=需确认")
    private String authType;

    public void setFriendId(Long friendId) 
    {
        this.friendId = friendId;
    }

    public Long getFriendId() 
    {
        return friendId;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setFriendUserId(Long friendUserId) 
    {
        this.friendUserId = friendUserId;
    }

    public Long getFriendUserId() 
    {
        return friendUserId;
    }

    public void setFriendStatus(String friendStatus) 
    {
        this.friendStatus = friendStatus;
    }

    public String getFriendStatus() 
    {
        return friendStatus;
    }

    public void setAuthType(String authType) 
    {
        this.authType = authType;
    }

    public String getAuthType() 
    {
        return authType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("friendId", getFriendId())
            .append("userId", getUserId())
            .append("friendUserId", getFriendUserId())
            .append("friendStatus", getFriendStatus())
            .append("authType", getAuthType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}

